<?php

/**
 *
 * @param type $actionPath
 * @param type $param
 */
function w($actionPath, $param = null)
{
	if (strpos($actionPath, '/') == false)
		return false;

	list($action, $method) = explode('/', $actionPath);
	$class_path = '\\App\\Widget\\' . $action;
	$class = new $class_path;
	echo $class->$method($param) ?: '';
}
